package com.huayal.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huayal.common.utils.PageUtils;
import com.huayal.mall.product.entity.AttrEntity;
import com.huayal.mall.product.vo.Attr;
import com.huayal.mall.product.vo.AttrResponseVo;
import com.huayal.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author huayal
 * @email efry@qq.com
 * @date 2024-11-01 20:00:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageBase(Map<String, Object> params, Long catId,String attrType);

    void saveAttr(AttrVo attr);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateDetail(AttrVo attr);

    void removeByIdsDetail(List<Long> asList);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrGroupId);

    List<Attr> getAttrInfos(Long catalogId);
}

